/**
 * Project Name:dyrj-admin
 * File Name:UserService1.java
 * Package Name:com.dyrj.base.system.user.service
 * Date:2018年1月13日下午2:31:12
 * Copyright (c) 2018, zhang.xiangyu@foxmail.com All Rights Reserved.
*/
package com.dyrj.base.system.user.service;

import com.dyrj.base.system.user.model.SysUser;
import com.dyrj.base.system.user.params.SysUserParams;
import com.dyrj.vo.PageResultMsg;
import com.dyrj.vo.ResultMsg;

import java.util.List;

/**
 * @Title: SysUserService
 * @Description: todo(系统用户)
 * @Author
 * @Date 2018年06月05日 14:29
 */
public interface SysUserService {

	/**
	 * 获取列表
	 * @param record
	 * @return
	 */
	PageResultMsg table(SysUser record);

	/**
	 * 获取列表
	 * @param record
	 * @return
	 */
	PageResultMsg selectuser_table(SysUser record);

	/**
	 * 新增用户
	 * @param record
	 * @param roles
	 * @return
	 */
	ResultMsg add(SysUser record, Long[] roles);
	
	/**
	 * @Title: info
	 * @Description: todo(查看详情)
	 * @Params: [id]
	 * @Return: com.dyrj.base.system.user.model.SysUser    返回类型
	 * @Author:
	 * @Date: 2018/9/4 下午3:19
	 */
	SysUser info(Long id);
	
	/**
	 * @Title: update 
	 * @Description: TODO(更新) 
	 * @param record
	 * @return ResultMsg    返回类型
	 */
	ResultMsg update(SysUser record, Long[] roles);
	
	/**
	 * @Title: delete 
	 * @Description: TODO(删除成功) 
	 * @param id
	 * @return ResultMsg    返回类型
	 */
	ResultMsg delete(Long id);

	/**
	 * @Title: changePassword
	 * @Description: todo(修改用户密码)
	 * @Params: [record]
	 * @Return: com.dyrj.vo.ResultMsg    返回类型
	 * @Author:
	 * @Date: 2018/8/30 下午4:18
	 */
	ResultMsg changePassword(SysUserParams record);

	List<SysUser> selectAllTreeUser(Long id);
	ResultMsg selectUserByDeptId (Long deptid);
	public List<SysUser> selectList();
}
